package main

import "fmt"
//import "unicode/utf8"

//注意：map不是线程安全，进行存取时需要加锁
func main()  {
	//声明一个字典
	map1 := make(map[string]string)
	map1["Name"] = "Bruce.Yang"
	map1["Work"] = "Engineer"
	map1["Age"] = "30"
	map1["Married"] = "Yes"
	fmt.Println(map1["Name"])
	for key, value := range map1 {
		fmt.Printf("Key = %s, Value = %s\n", key, value)
	}
}